package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TbLkw entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_LKW", schema = "dbo", catalog = "AGDB")
public class TbLkw implements java.io.Serializable {

	// Fields

	private String lawKwid;
	private TbLaw tbLaw;
	private String lawKw;
	private String a;
	private String b;
	private String c;

	// Constructors

	/** default constructor */
	public TbLkw() {
	}

	/** minimal constructor */
	public TbLkw(String lawKwid, TbLaw tbLaw, String lawKw) {
		this.lawKwid = lawKwid;
		this.tbLaw = tbLaw;
		this.lawKw = lawKw;
	}

	/** full constructor */
	public TbLkw(String lawKwid, TbLaw tbLaw, String lawKw, String a, String b,
			String c) {
		this.lawKwid = lawKwid;
		this.tbLaw = tbLaw;
		this.lawKw = lawKw;
		this.a = a;
		this.b = b;
		this.c = c;
	}

	// Property accessors
	@Id
	@Column(name = "LAW_KWID", unique = true, nullable = false, length = 14)
	public String getLawKwid() {
		return this.lawKwid;
	}

	public void setLawKwid(String lawKwid) {
		this.lawKwid = lawKwid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "LAW_ID", nullable = false)
	public TbLaw getTbLaw() {
		return this.tbLaw;
	}

	public void setTbLaw(TbLaw tbLaw) {
		this.tbLaw = tbLaw;
	}

	@Column(name = "LAW_KW", nullable = false, length = 500)
	public String getLawKw() {
		return this.lawKw;
	}

	public void setLawKw(String lawKw) {
		this.lawKw = lawKw;
	}

	@Column(name = "A", length = 50)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 50)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 50)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

}